#ifndef __STACK_H
#define __STACK_H
struct stack{
    int     s32Top; /* 栈顶*/
    int     *p_buf; /* 栈缓冲 */
    unsigned int    s32Size; /*栈缓冲大小*/
};

int stack_init(struct stack *p_stack, int *p_buf, int s32Size); /*初始化*/
int stack_push(struct stack  *p_stack, int s32Val);
int stack_pop(struct stack *p_stack, int *p_s32Val);
int stack_deinit(struct stack *p_stack);


#endif


